package cn.poem.controller;

import cn.poem.base.ResponseData;
import cn.poem.entity.CommentComments;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;

/**
 * @Description 读后感评论
 * @Author sugar
 * @Date 2021/6/18 11:34 AM
 * @Version 1.0
 */
@RequestMapping("poem/comment/comments/")
public interface CommentCommentsController {

    @PostMapping("save")
    ResponseData<Boolean> save(@RequestBody CommentComments commentComments);

    @DeleteMapping("del/{id}")
    ResponseData<Boolean> del(@PathVariable("id") Long id);

    @GetMapping("page/{page}/{size}")
    ResponseData<IPage<CommentComments>> page(@PathVariable("page") int page, @PathVariable("size") int size, CommentComments commentComments);

    @GetMapping("detail/{id}")
    ResponseData<CommentComments> detail(@PathVariable("id") Long id);

}
